import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/schedul_child_entity.dart';

SchedulChildEntity $SchedulChildEntityFromJson(Map<String, dynamic> json) {
  final SchedulChildEntity loginBeanEntity = SchedulChildEntity();

  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    loginBeanEntity.id = id;
  }
  final String? shipperName = jsonConvert.convert<String>(json['shipperName']);
  if (shipperName != null) {
    loginBeanEntity.shipperName = shipperName;
  }
  final String? warehouseName = jsonConvert.convert<String>(json['warehouseName']);
  if (warehouseName != null) {
    loginBeanEntity.warehouseName = warehouseName;
  }
  final String? orderNumber = jsonConvert.convert<String>(json['orderNumber']);
  if (orderNumber != null) {
    loginBeanEntity.orderNumber = orderNumber;
  }
  final double? count = jsonConvert.convert<double>(json['count']);
  if (count != null) {
    loginBeanEntity.count = count;
  }
  final String? orderType = jsonConvert.convert<String>(json['orderType']);
  if (orderType != null) {
    loginBeanEntity.orderType = orderType;
  }
  final String? consignee = jsonConvert.convert<String>(json['consignee']);
  if (consignee != null) {
    loginBeanEntity.consignee = consignee;
  }
  final String? mobilePhone = jsonConvert.convert<String>(json['mobilePhone']);
  if (mobilePhone != null) {
    loginBeanEntity.mobilePhone = mobilePhone;
  }

  final String? provinceName = jsonConvert.convert<String>(json['provinceName']);
  if (provinceName != null) {
    loginBeanEntity.provinceName = provinceName;
  }
  final String? cityName = jsonConvert.convert<String>(json['cityName']);
  if (cityName != null) {
    loginBeanEntity.cityName = cityName;
  }

  final String? villageName = jsonConvert.convert<String>(json['villageName']);
  if (villageName != null) {
    loginBeanEntity.villageName = villageName;
  }
  final String? address = jsonConvert.convert<String>(json['address']);
  if (address != null) {
    loginBeanEntity.address = address;
  }
  final String? stationTime = jsonConvert.convert<String>(json['stationTime']);
  if (stationTime != null) {
    loginBeanEntity.stationTime = stationTime;
  }
  final String? orderId = jsonConvert.convert<String>(json['orderId']);
  if (orderId != null) {
    loginBeanEntity.orderId = orderId;
  }
  return loginBeanEntity;
}

Map<String, dynamic> $SchedulChildEntityToJson(SchedulChildEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['shipperName'] = entity.shipperName;
  data['id'] = entity.id;
  data['warehouseName'] = entity.warehouseName;
  data['orderNumber'] = entity.orderNumber;
  data['count'] = entity.count;
  data['orderType'] = entity.orderType;
  data['consignee'] = entity.consignee;
  data['mobilePhone'] = entity.mobilePhone;
  data['provinceName'] = entity.provinceName;
  data['cityName'] = entity.cityName;
  data['areaName'] = entity.areaName;
  data['villageName'] = entity.villageName;
  data['address'] = entity.address;
  data['stationTime'] = entity.stationTime;
  data['orderId'] = entity.orderId;
  return data;
}
